<?php
/**
 * User: zyj
 * Date: 2019/9/2
 */

namespace app\manage\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'username' => 'require|min:4',
        'userpass' => 'require|min:6',
    ];
    protected $message  =[
        'username.require' => '登录账号不能为空！',
        'username.min'     => '登录账号长度不能少于4位有效字符！',
        'userpass.require' => '登录密码不能为空！',
        'userpass.min'     => '登录密码长度不能少于6位有效字符！',
    ];

}